package com.ssm.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ssm.dao.CompanyMapper;
import com.ssm.pojo.Company;
import com.ssm.service.CompanyService;
import com.ssm.service.PersonService;

@Service("CompanyService")
public class CompanyServiceImpl implements CompanyService{

	  @Resource
	    private CompanyMapper companyDao;
	/**
	 * 注册
	 */
	@Override
	public int insRegister(Company company) {
		// TODO Auto-generated method stub
		return this.companyDao.insert(company);
	}
	@Override
	public Company selLogin(Company company) {
		
		return companyDao.selectone(company);
	}
	@Override
	public int updateSelective(Company company) {
		// TODO Auto-generated method stub
		return companyDao.updateByPrimaryKeySelective(company);
	}
	@Override
	public Company selectbyid(int id) {
		// TODO Auto-generated method stub
		return companyDao.selectByPrimaryKey(id);
	}

	

}
